package com.he.mapper;

import com.he.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: usersync
 * @description:
 * @author: xin.he
 * @create: 2021-06-06 12:21
 **/
@Mapper
@Repository
public interface UserMapper {
    //查询
    List<User> queryAll ();
    //添加数据
    int add(User user);
    //根据用户名查询
    User queryByName(String name);
    //根据uid查询
    User queryByUid(String uid);
}
